{extend name='public/base' /}

{block name="style"}
{css href="/static/umeditor/themes/default/css/umeditor.css" /}
{/block}

{block name="breadcrumb"}
{$crumbs}
{/block}

{block name="body"}
<div class="col-lg-12">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-12 b-r">
                    <h3 class="m-t-none m-b"></h3>
                    <form role="form" action="{:url('save_info')}" method="post" autocomplete="off" data-form="form">
                        <div class="form-group">
                            <label>title</label>
                            <input type="text" name="title" placeholder="title" class="form-control" value="{$site.title}">
                        </div>
                        <div class="form-group">
                            <label>keywords</label>
                            <input type="text" name="keywords" placeholder="keywords" class="form-control" value="{$site.keywords}">
                        </div>
                        <div class="form-group">
                            <label>description</label>
                            <input type="text" name="description" placeholder="description" class="form-control" value="{$site.description}">
                        </div>
                        <div class="form-group">
                            <label>开启客服</label>
                            <input type="text" name="keywords" placeholder="keywords" class="form-control" value="{$site.keywords}">
                        </div>
                        <div class="form-group">
                        <label>footer</label>
                            <script id="container" name="footer" type="text/plain" class="col-sm-12">
                                {$site.footer}
                            </script>
                        </div>
                        <div>
                            <button class="btn btn-sm btn-primary m-t-n-xs" type="submit"><strong>确定</strong></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="javascript"}
    <!-- 编辑器 -->
    {js href="/static/umeditor/umeditor.config.js" /}
    {js href="/static/umeditor/umeditor.js" /}
    {js href="/static/umeditor/lang/zh-cn/zh-cn.js" /}
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var um = UM.getEditor('container');
    </script>
{/block}